import cv2
import numpy as np

img = cv2.imread('../asset/dog.jpg')
# kernel = np.ones((3, 3), np.uint8)
kernel = np.ones((7, 7), np.uint8)
dst = cv2.erode(img, kernel, iterations=1)
while True:
    cv2.imshow('img', img)
    cv2.imshow('dst', dst)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break
cv2.destroyAllWindows()
